package com.UI;

import com.Model.StudentDBModel;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class ViewStudyInfo extends Activity {

	String[]sResult;
	String s,courseNum;
	String cNo;
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.view_study_info);

		Bundle extras = getIntent().getExtras();
		cNo = extras.getString("CourseNum");

		TextView output=(TextView) this.findViewById(R.id.printStudyInfo);

		StudentDBModel model = new StudentDBModel(this);

		StringBuilder studyinfo = model.displayStudyInfo(cNo);

		output.setText(studyinfo);
	
		Button btnGoBack = (Button) findViewById(R.id.btnBack);
		btnGoBack.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View component) {
				// go back to the Course Menu
				ViewStudyInfo.this.finish();
			}
		});
	
	
	
	
	
	}

	






}